home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Suzy B Software 2
/
Suzy B Software CD-ROM 2 (1994).iso
/
extras
/
programm
/
gemfsc20
/
gemfsc20.lzh
/
GEMFUNCS
/
OBJOXYWH.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-03
|
1KB
|
37 lines
/**************************************************************************
* OBJOXYWH.C - Return GRECT data from object.
*************************************************************************/
#include "gemfintl.h"
/*-------------------------------------------------------------------------
* obj_xywh - Return object's GRECT, not adjusted to screen coordinates.
*-----------------------------------------------------------------------*/
void obj_xywh(ptree, object, prect)
register OBJECT *ptree;
short object;
register GRECT *prect; /* really a pointer to a grect */
{
ptree = &ptree[object];
prect->g_x = ptree->ob_x;
prect->g_y = ptree->ob_y;
prect->g_w = ptree->ob_width;
prect->g_h = ptree->ob_height;
}
/*-------------------------------------------------------------------------
* obj_offxywh - Return object's GRECT, adjusted to screen coordinates.
*-----------------------------------------------------------------------*/
void obj_offxywh(ptree, object, prect)
register OBJECT *ptree;
short object;
register GRECT *prect;
{
obj_xywh(ptree, object, prect);
objc_offset(ptree, object, &prect->g_x, &prect->g_y);
}